:root {
  /* 颜色 */
  --space-cadet: hsl(224, 48%, 22%);
  --red-crayola: hsl(342, 100%, 50%);
  --black-coral: hsl(219, 13%, 44%);
  --blue-ryb: hsl(244, 86%, 59%);
  --cultured: hsl(0, 0%, 96%);
  --white: hsl(0, 0%, 100%);

  /* 格式 */
  --ff-be-vietnam-pro: "Be Vietnam Pro", sans-serif;

  --fs-1: 1.875rem;
  --fs-2: 1.5rem;
  --fs-3: 1.063rem;
  --fs-4: 0.875rem;
  --fs-5: 0.813rem;

  --fw-500: 500;
  --fw-600: 600;
  --fw-700: 700;

  /* 过渡 */
  --transition: 0.25s ease;
  --transition-2: 0.5s ease;

  /* 间距 */
  --section-padding: 60px;

  /* 圆角 */
  --radius-4: 4px;
  --radius-8: 8px;
  --radius-12: 12px;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
li {
  list-style: none;
}
a {
  text-decoration: none;
}

a,
img,
span,
input,
button,
ion-icon {
  display: block;
}
input,
button {
  background: none;
  border: none;
  font: inherit;
}
button {
  cursor: pointer;
}
input {
  width: 100%;
}
html {
  font-family: var(--ff-be-vietnam-pro);
  scroll-behavior: smooth;
}
body {
  background: var(--white);
}

.container {
  padding-inline: 15px;
}

/* header */
.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 74px;
  background: var(--white);
  box-shadow: 0 2px 25px hsla(0, 0%, 0%, 0.1);
  padding-block: 16px;
  overflow: hidden;
  transition: 0.35s ease-out;
  z-index: 10000;
}

.header.nav-active {
  height: 250px;
  transition: 0.5s ease-out;
}
.banner {
  display: flex;
  text-align: center;
}

.header.active {
  position: fixed;
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  width: 160px;
}

.nav-toggle-btn {
  color: hsla(0, 0%, 0%, 0.8);
  font-size: 35px;
  padding-inline: 5px;
}

.nav-toggle-btn .open,
.nav-toggle-btn.active .close {
  display: block;
}

.nav-toggle-btn .close,
.nav-toggle-btn.active .open {
  display: none;
}

.navbar {
  position: absolute;
  top: 70px;
  left: 0;
  width: 100%;
  background: var(--white);
  padding-block: 10px;
  visibility: hidden;
}

.header.nav-active .navbar {
  visibility: visible;
  z-index: 99999;
}

.navbar-link {
  color: var(--space-cadet);
  font-size: var(--fs-4);
  font-weight: var(--fw-600);
  padding: 6px 15px;
  transition: var(--transition);
  opacity: 0;
}

.header.nav-active .navbar-link {
  opacity: 1;
}

.navbar-link:is(:hover) {
  color: var(--red-crayola);
}

.header .btn {
  display: none;
}

/* hero */
.hero {
  background: var(--cultured);
  padding-top: 130px;
  padding-bottom: var(--section-padding);
}
.hero .shape {
  display: none;
}
.w-100 {
  width: 100%;
}
.hero-banner {
  margin-bottom: 30px;
}
.hero-banner img {
  border-radius: var(--radius-12);
}
.hero-content {
  text-align: center;
}
.h1,
.h2,
.h3 {
  color: var(--space-cadet);
  line-height: 1.2;
}
.h1 {
  font-size: var(--fs-1);
  line-height: 1.2;
}
.h2 {
  font-size: var(--fs-2);
}
.h3 {
  font-size: var(--fs-3);
}
.h4 {
  font-size: var(--fs-4);
}
.h5 {
  font-size: var(--fs-5);
}
.section-text,
.features .card-text {
  color: var(--black-coral);
  font-size: var(--fs-4);
  line-height: 1.8;
  margin-bottom: 15px;
}
.hero-title,
.hero .section-text {
  margin-bottom: 20px;
}
.hero .btn {
  margin-inline: auto;
}
.btn {
  font-size: var(--fs-4);
  font-weight: var(--fw-500);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 14px 25px;
  border-radius: var(--radius-4);
  transition: var(--transition);
}
.btn-primary {
  color: var(--white);
  background: var(--red-crayola);
}

.btn > ion-icon {
  font-size: 16px;
}
.btn-primary:is(:hover) {
  background: var(--blue-ryb);
}
.btn-secondary {
  background: var(--blue-ryb);
  color: var(--white);
}
.btn-secondary:is(:hover) {
  background: var(--red-crayola);
}

/* Features */
.features {
  padding-block: var(--section-padding);
}
.section-subtitle {
  color: var(--black-coral);
  font-size: var(--fs-5);
  font-weight: var(--fw-600);
  margin-bottom: 15px;
}
.features .section-title {
  margin-bottom: 40px;
}
.features :is(.section-subtitle, .section-title) {
  text-align: center;
}
.features-list {
  display: grid;
  gap: 25px;
}
.features-card {
  /* border: 1px solid rgb(218, 218, 218); */
  padding: 30px;
  margin: 30px;
  text-align: center;
}
.features-card .card-icon {
  max-width: max-content;
  margin-inline: auto;
  margin-bottom: 30px;
}
.features-card .card-title {
  margin-bottom: 15px;
}
.features-card .card-link {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  color: var(--red-crayola);
  font-size: var(--fs-5);
  font-weight: var(--fw-600);
  transition: var(--transition);
}
.features .card-link:is(:focus, :hover) {
  gap: 10px;
  color: var(--space-cadet);
  font-size: var(--fs-4);
  font-weight: var(--fw-700);
}

/* Service */
.service {
  background: var(--cultured);
  padding-block: var(--section-padding);
}
.service-banner {
  margin-bottom: 30px;
}

.service-content:first-of-type {
  padding-bottom: 50px;
  border-bottom: 1px solid hsla(0, 0%, 0%, 0.05);
  margin-bottom: 50px;
}
.service .section-title {
  margin-bottom: 30px;
}
.service-item {
  background: var(--white);
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 20px;
  box-shadow: 0 5px 25px 10px hsla(0, 0%, 0%, 0.02);
  border-radius: var(--radius-8);
}
.service-item:not(:last-child) {
  margin-bottom: 20px;
}
.service-item-icon {
  background: var(--cultured);
  color: var(--red-crayola);
  min-width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: var(--transition);
}
.service-item-icon ion-icon {
  --ionicon-stroke-width: 50px;
}

.service-item:hover .service-item-icon {
  background: var(--red-crayola);
  color: var(--white);
}
/* BLOG */
.blog {
  padding-block: var(--section-padding);
  border-bottom: 2px solid var(--cultured);
}
.blog :is(.section-subtitle, .section-title) {
  text-align: center;
}
.blog .section-title {
  margin-bottom: 40px;
}
.blog-list {
  display: grid;
  gap: 25px;
}
.blog-card {
  background: var(--white);
  box-shadow: 0 2px 25px 10px hsla(0, 0%, 0%, 0.1);
  border-radius: var(--radius-12);
  overflow: hidden;
}
.blog-banner {
  aspect-ratio: 2/1.3;
  overflow: hidden;
}
.blog-banner :is(a, img) {
  height: 100%;
}
.blog-banner img {
  object-fit: cover;
  transition: var(--transition-2);
}
.blog-card:hover .blog-banner img {
  transform: scale(1.1);
}
.blog-content {
  padding: 20px;
}
.blog-meta-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}
.blog-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--black-coral);
  font-size: var(--fs-5);
  text-transform: uppercase;
}
.blog-meta-item > ion-icon {
  color: var(--red-crayola);
  --ionicon-stroke-width: 45px;
  transition: var(--transition);
}
.blog-meta-item .blog-meta-link {
  color: var(--black-coral);
  transition: var(--transition);
}
.blog-meta-item .blog-meta-link:is(:hover) {
  color: var(--red-crayola);
  font-size: var(--fs-4);
  cursor: default;
}
.blog-title > a {
  color: inherit;
  transition: var(--transition);
}

.blog-title > a:is(:hover) {
  color: var(--red-crayola);
  font-size: 20px;
}

/* Newsletter */
.newsletter {
  background: var(--cultured);
  padding-block: var(--section-padding);
}
.newsletter .section-title {
  margin-bottom: 25px;
}
.newsletter-banner {
  margin-bottom: 30px;
}
.input-field {
  display: none;
  background: var(--white);
  outline: 1px solid hsla(0, 0%, 0%, 0.1);
  padding: 15px 20px;
  border-radius: var(--radius-4);
  margin-bottom: 15px;
  transition: var(--transition);
}

.input-field:focus {
  outline-color: var(--red-crayola);
}
.newsletter-btn-content {
  color: var(--white);
}

/* footer */
.footer-top {
  padding-block: var(--section-padding);
  background: var(--cultured);
}
.footer .logo {
  margin-bottom: 20px;
}
.location-text {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
}
.location-icon {
  background: var(--cultured);
  color: var(--red-crayola);
  font-size: 22px;
  min-width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.address {
  color: var(--space-cadet);
  font-size: var(--fs-5);
  font-weight: var(--fw-600);
  line-height: 1.6;
  font-style: normal;
}
.quicklink-box {
  margin-bottom: 15px;
}

.quicklink-title,
.contact-title {
  font-weight: var(--fw-700);
  margin-bottom: 20px;
}
.quicklink-list {
  column-count: 2;
}
.quicklink-list > li {
  padding-block: 8px;
}
.quicklink {
  color: var(--black-coral);
  font-size: var(--fs-4);
  transition: var(--transition);
}
.quicklink:is(:hover) {
  color: var(--red-crayola);
}

.contact-list {
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius-4);
  box-shadow: 0 2px 50px 10px hsla(0, 0%, 0%, 0.08);
}

.contact-item {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
}
.contact-item:first-child {
  padding-bottom: 8px;
  border-bottom: 1px solid hsla(0, 0%, 0%, 0.1);
  margin-bottom: 8px;
}
.contact-icon {
  background: var(--cultured);
  color: var(--red-crayola);
  min-width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-size: 18px;
  border-radius: 50%;
  transition: var(--transition);
}

.contact-icon ion-icon {
  --ionicon-stroke-width: 40px;
}
.contact-item:hover .contact-icon {
  background: var(--red-crayola);
  color: var(--white);
}
.contact-link {
  color: var(--black-coral);
  font-size: var(--fs-4);
  transition: var(--transition);
}
.contact-link:is(:hover) {
  color: var(--red-crayola);
}
.footer-bottom {
  background: var(--space-cadet);
  padding-block: 30px;
}
.copyright {
  color: var(--white);
  font-size: var(--fs-4);
  line-height: 1.8;
  text-align: center;
  margin-bottom: 15px;
}
.copyright > a {
  display: inline-block;
  color: inherit;
  text-decoration: underline;
  transition: var(--transition);
}

.copyright > a:is(:hover) {
  color: var(--red-crayola);
}
.social-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.social-link {
  background: hsla(0, 0%, 0%, 0.2);
  color: var(--white);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: var(--transition);
}

.social-link:is(:hover) {
  color: var(--red-crayola);
}

/* go to top */
.go-top {
  background: var(--white);
  color: var(--space-cadet);
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-size: 20px;
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  box-shadow: 0 2px 10px hsla(0, 0%, 0%, 0.1);
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
  visibility: hidden;
  z-index: 2;
}
.go-top.active {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}
.go-top:is(:hover) {
  background: var(--black-coral);
  color: var(--white);
}

.pic {
  margin-top: 74px;
  width: 100%;
  height: 500px;
  /* border: 4px solid #888; */
  overflow: hidden;
  /* background: linear-gradient(#1d2b48, #4f4266); */
  background: var(--cultured);
}
.out {
  max-width: 800px;
  width: 80%;
  height: 200px;
  position: relative;
  /* border: 4px solid #000; */
  margin: 0 auto;
  /* margin */
  top: 50px;
}
.out .inner {
  padding-left: 45px;
  width: 100%;
  /* border: 4px solid #fff; */
  height: 100%;
}
.out .inner .img {
  width: 300px;
  /* height: 267px; */
  /* width: 40%; */
  position: absolute;
  transition: 0.3s;
}
.out .inner .img img {
  max-width: 100%;
  height: auto;
}

.out .arrow {
  /* border: 4px solid #333; */
  font-size: 32px;
}
.out .arrow i {
  position: relative;
  color: var(--black-coral);
  z-index: 9999;
  cursor: pointer;
  top: -100px;
  font-size: 40px;
  font-weight: 600;
}
/* .out .arrow .left {
  left: -50px; 
} */
.out .arrow .right {
  left: 700px;
}
.out .button {
  /* border: 4px solid #111; */
  width: 220px;
  height: 30px;
  /* position:relative; */
  z-index: 9999;
  margin: 0 auto;
  margin-top: 60px;
  /* transform: translateY(100%); */
  /* transform: translateX(-35%); */
}
.roll-p {
  width: 20px;
  height: 20px;
  float: left;
  margin: 0 5px;
  background: silver;
}

.roll-p:first-child {
  background: rgb(20, 134, 187);
}
.roll-p:hover {
  cursor: pointer;
}
/* 设置id样式 */
.out #last {
  transform: translateX(0);
  z-index: 9;
  opacity: 1;
}
.out #first {
  transform: translateX(200px) scale(1.3);
  z-index: 99;
  opacity: 1;
}
.out #second {
  transform: translateX(400px);
  z-index: 9;
  opacity: 1;
}
.out #left {
  transform: translateX(-100px);
  z-index: 1;
  opacity: 0;
}
.out #right {
  transform: translateX(500px);
  z-index: 1;
  opacity: 0;
}
.pic-roll {
  border-top: 1px solid var(--cultured);
  border-bottom: 1px solid var(--cultured);
  /* background: linear-gradient(#1d2b48, #4f4266); */
  background: var(--cultured);
  margin-top: 75px;
  width: 100%;
}
.roll-description {
  /* z-index: 99; */
  text-align: center;
  margin-top: 50px;
  margin-bottom: 30px;
  font-size: 30px;

  font-weight: 700;
}
.roll-description h3 {
  font-size: 35px;
  /* color: var(--white); */
}
.pic .roll-description {
  margin-bottom: 0;
}

.roll {
  margin: 0px auto;
  width: 90%;
  overflow: hidden;
  /* border: 1px solid #333; */
  position: relative;
  height: 267px;
  margin-bottom: 50px;
}
.roll .list {
  position: absolute;
  left: 0;
  display: flex;
  align-items: center;
}
.roll .list img {
  width: 100%;
  height: auto;
}
.list div {
  width: 384px;
  height: 267px;
  margin-right: 10px;
  /* background: #147ecb; */
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
}
.roll {
  display: flex;
  justify-content: center;
  align-items: center;
}
/* .list div:nth-child(6n + 1) {
  background-color: #ec3945;
}
.list div:nth-child(6n + 2) {
  background: #9d7ae9;
}
.list div:nth-child(6n + 3) {
  background: teal;
}
.list div:nth-child(6n + 4) {
  background: darkslategray;
}
.list div:nth-child(6n + 5) {
  background: orange;
} */
.pic-roll {
  display: none;
}

@media (max-width: 999px) {
  .pic {
    display: none;
  }
  .pic-roll {
    display: block;
  }
}
#service1 {
  background: var(--white);
}
/* 宽屏下的css 像素>575px */
@media (min-width: 575px) {
  /* Reused style */
  .container {
    max-width: 520px;
    margin-inline: auto;
  }

  /* Features */
  .features-list {
    grid-template-columns: 1fr 1fr;
    gap: 40px 40px;
  }
  .features-card {
    border: none;
    padding: 0;
  }
}

/* 宽屏下的css 像素>768px */
@media (min-width: 768px) {
  /* base font size */
  html {
    font-size: 17.5px;
  }

  /* custom property */
  :root {
    /* 
    typography */
    --fs-1: 2.286rem;
    --fs-2: 1.829rem;
  }
  /* reused style */
  .container {
    max-width: 700px;
    margin-inline: auto;
  }

  /* features */

  /* .features-card {
    text-align: left;
  }

  .features-card .card-icon {
    margin-inline: 0;
  }

  .features-card .card-icon img {
    width: 60px;
  }
  .features-card .card-link {
    justify-content: flex-start;
  } */

  /* service */
  .service-item:not(:last-child) {
    margin-bottom: 30px;
  }
  .service-list {
    padding-right: 80px;
  }
  .service-item:nth-child(even) {
    transform: translateX(80px);
  }

  /* blog */
  .blog-list {
    grid-template-columns: 1fr 1fr;
  }

  /* footer */
  .footer-top .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px 60px;
  }
  .footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .copyright {
    margin-bottom: 0;
  }
}
/* 宽屏下的css 像素>992px */
@media (min-width: 1000px) {
  /* base font size */
  html {
    font-size: 18px;
  }
  /* custom property */

  :root {
    /* typography */
    --fs-1: 2.571rem;
    --fs-2: 1.944rem;
    --fs-3: 1.167rem;
    /* spacing */
    --section-padding: 120px;
  }

  /* reused style */
  .container {
    max-width: 950px;
  }
  .section-title {
    max-width: 20ch;
    margin-inline: auto;
  }

  /* header */
  .header,
  .header.nav-active {
    height: unset;
  }
  .header {
    background: none;
    box-shadow: none;
  }
  .header.active {
    background: var(--white);
    box-shadow: 0 2px 25px hsla(0, 0%, 0%, 0.1);
  }
  .nav-toggle-btn {
    display: none;
  }

  .navbar {
    all: unset;
  }
  .navbar-link {
    opacity: 1;
    padding-block: 20px;
  }
  .header.active .navbar-link {
    padding-block: 5px;
  }

  .navbar-list {
    display: flex;
  }
  .header .btn {
    display: flex;
    font-size: var(--fs-5);
  }

  /* hero */
  .hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .hero {
    padding-top: 180px;
  }
  .hero-banner {
    margin-bottom: 0;
    order: 1;
  }
  .hero-content {
    text-align: left;
  }
  .hero .btn {
    margin-inline: 0;
  }
  /* hero */
  .hero {
    position: relative;
    z-index: 1;
    overflow: hidden;
  }
  .hero .shape {
    display: block;
    position: absolute;
    user-select: none;
    z-index: -1;
  }
  .hero .shape-1 {
    top: 0;
    left: -80px;
    height: 100%;
  }
  .hero .shape-2 {
    bottom: 60px;
    left: 30%;
  }
  .hero .shape-3 {
    top: 0;
    right: -80px;
    height: 100%;
  }
  /* features */
  .features-list {
    grid-template-columns: repeat(4, 1fr);
  }
  .features-card .card-icon img {
    width: unset;
  }

  /* service */
  .service .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 100px 40px;
  }
  .service-banner {
    margin-bottom: 0;
  }
  .service-content:first-of-type {
    padding-bottom: 0;
    border-bottom: none;
    margin-bottom: 0;
  }

  .service-list {
    padding-right: 50px;
  }
  .service-item:nth-child(even) {
    transform: translateX(50px);
  }
  .service-item-icon {
    min-width: 40px;
    height: 40px;
    font-size: 1.125rem;
  }
  .service-banner:last-of-type {
    order: 1;
  }
  /* newsletter */
  .newsletter .container {
    display: flex;
    align-items: center;
    gap: 50px;
  }
  .newsletter-banner {
    width: 50%;
    margin-bottom: 0;
    order: 1;
  }

  .newsletter-content {
    width: 50%;
  }
  .newsletter-form {
    display: flex;
    gap: 25px;
  }
  .input-field {
    margin-bottom: 0;
  }
  .newsletter .btn {
    min-width: max-content;
    padding-inline: 15px;
  }

  /* footer */
  .footer-top .container {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
  .contact-list {
    padding: 30px;
  }
  .contact-item:first-child {
    padding-bottom: 15px;
    margin-bottom: 15px;
  }
}

/* 宽屏下的css 像素>1200px */
@media (min-width: 1200px) {
  /* cutsom property */
  :root {
    /* typography */
    --fs-1: 3rem;
    --fs-2: 2.3333rem;
    --fs-3: 1.222rem;
    --fs-4: 0.944rem;
  }

  /* reused style */
  .container {
    max-width: 1150px;
  }
  /* hero */
  .hero {
    position: relative;
    z-index: 1;
    overflow: hidden;
  }
  .hero .shape {
    display: block;
    position: absolute;
    user-select: none;
    z-index: -1;
  }
  .hero .shape-1 {
    top: 0;
    left: -80px;
    height: 100%;
  }
  .hero .shape-2 {
    bottom: 60px;
    left: 30%;
  }
  .hero .shape-3 {
    top: 0;
    right: -80px;
    height: 100%;
  }

  /* features */
  .features .section-title {
    margin-bottom: 70px;
  }

  /* service */
  .service .container {
    column-gap: 60px;
  }
  .service .section-title {
    margin-bottom: 50px;
  }

  /* blog */
  .blog .section-title {
    margin-bottom: 70px;
  }
  .blog-list {
    grid-template-columns: repeat(3, 1fr);
  }
  /* newsletter */
  .newsletter .container {
    gap: 80px;
  }
  .newsletter-banner {
    width: 45%;
  }
  .newsletter-content {
    width: 55%;
  }
}
